pets = []

pets_dict = {'master': 'AlanShelby', 'pet': 'dog'}
pets.append(pets_dict)
pets_dict = {'master': 'Tom', 'pet': 'cat'}
pets.append(pets_dict)

for pet in pets:
    print(f"master is {pet.get('master')}")
    print(f"pet is {pet.get('pet')}")
